package com.scm.persist.mybatis;

import com.scm.persist.model.ScmOrder;
import com.scm.persist.model.ScmOrderExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmOrderMapper {
    int countByExample(ScmOrderExample example);

    int deleteByExample(ScmOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmOrder record);

    long insertSelective(ScmOrder record);

    List<ScmOrder> selectByExampleWithRowbounds(ScmOrderExample example, RowBounds rowBounds);

    List<ScmOrder> selectByExample(ScmOrderExample example);

    ScmOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmOrder record, @Param("example") ScmOrderExample example);

    int updateByExample(@Param("record") ScmOrder record, @Param("example") ScmOrderExample example);

    int updateByPrimaryKeySelective(ScmOrder record);

    int updateByPrimaryKey(ScmOrder record);
}